projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9474215
)
gtklabel: Don't accept unhandled mouse buttons
author
Timm Bäder
<mail@baedert.org>
Fri, 26 Dec 2014 22:04:37 +0000
(23:04 +0100)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 9 Jan 2015 02:52:26 +0000
(21:52 -0500)
If the pressed mouse button neither triggers a context menu nor
activates a link, set the sequence's state to DENIED.
https://bugzilla.gnome.org/show_bug.cgi?id=742010
gtk/gtklabel.c
patch
|
blob
|
history
diff --git
a/gtk/gtklabel.c
b/gtk/gtklabel.c
index b07f40c130f2afa9146f1877487217fa1dce983d..6cc0e24d9d790c105ccc96d383f124f7af74bddc 100644
(file)
--- a/
gtk/gtklabel.c
+++ b/
gtk/gtklabel.c
@@
-4956,6
+4956,11
@@
gtk_label_multipress_gesture_pressed (GtkGestureMultiPress *gesture,
gtk_label_select_word (label);
}
}
+ else
+ {
+ gtk_gesture_set_state (GTK_GESTURE (gesture), GTK_EVENT_SEQUENCE_DENIED);
+ return;
+ }
if (n_press >= 3)
gtk_event_controller_reset (GTK_EVENT_CONTROLLER (gesture));